
class pieceTest {

    // variable set up
    private int ROWS;     
    private int COLS;    
    private String displayString;



    // another constructor test, learning constructors on the way!!
    public pieceTest(int row, int col, String piece) {
        ROWS = row;
        COLS = col;
        displayString = piece;
    }


    // setting piece
    public void setPiece(String newPiece) {
        displayString = newPiece;
    }

    // had to return the get piece part here
    public String getPiece() {
        return displayString; // new piece = the display string so I returned it
    }


    // ARE WE OK TO MOVE THE PIECE? :-)
    public boolean okToMoveFinal(int r, int c) {
        return r==ROWS && c==COLS;
    }
    // hopefully we are
}
